package com.example.yls.activity;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;

import com.example.hulixia.myapplication.R;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        findViewById(R.id.btn_eat).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
               /* Intent intent=new Intent();
                intent.setAction("I_WANT_EAT");
                intent.addCategory("NIU_ROU_FAN");
                startActivity(intent);*/

                Intent intent=new Intent();
                intent.setClassName("com.example.yls.demoa",
                        "com.example.yls.activity.ThirdActivity");
                startActivity(intent);
            }
        });
    }
}
